const source = axios.CancelToken.source();
axios.get('/urlA', {
  cancelToken: source.token
});
axios.get('/urlB').then(() => {
  source.cancel("B请求成功了");
});
